package o2o.dao.VO.shop;

//店铺评论

import com.jinyou.utils.common.ValidateUtil;
import o2o.system.data.SYS_CONFIG_PATH;

public class ShopCommentInfoDBVO {

    private Long id;// ID

    private Long shopId;//工人id
    private String orderNo;//订单编号
    private String comment;//评价信息
    private String image1Url;//评价图片地址
    private String image2Url;//评价图片地址
    private String image3Url;//评价图片地址
    private String image4Url;//评价图片地址
    private int star;//星级 默认4星
    private int isUnknownName;//是否匿名（1是匿名 0是不匿名）

    private String name;//评论者姓名
    private String signPhoto;//评论者头像

    private String createUser;//评论者账号
    private long createTime;// 创建日期 141231212423423时间戳毫秒级标识
    private Integer delFlag;//是否已删除

    private String extra1;  //
    private String extra2;
    private String extra3;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getShopId() {
        return shopId;
    }

    public void setShopId(Long shopId) {
        this.shopId = shopId;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public String getImage1Url() {
        if (ValidateUtil.isNotNull(image1Url) && ValidateUtil.isNotNetUrl(image2Url)) {
//            image1Url = Common.imageUrl + image1Url;
            image1Url = SYS_CONFIG_PATH.IMAGE_BASE_URL + image1Url;
        }

        return image1Url;
    }

    public void setImage1Url(String image1Url) {
        this.image1Url = image1Url;
    }

    public String getImage2Url() {
        if (ValidateUtil.isNotNull(image2Url) && ValidateUtil.isNotNetUrl(image2Url)) {
//            image2Url = Common.imageUrl + image2Url;
            image2Url = SYS_CONFIG_PATH.IMAGE_BASE_URL + image2Url;
        }
        return image2Url;
    }

    public void setImage2Url(String image2Url) {
        this.image2Url = image2Url;
    }

    public String getImage3Url() {
        if (ValidateUtil.isNotNull(image3Url) && ValidateUtil.isNotNetUrl(image3Url)) {
//            image3Url = Common.imageUrl + image3Url;
            image3Url = SYS_CONFIG_PATH.IMAGE_BASE_URL + image3Url;
        }
        return image3Url;
    }

    public void setImage3Url(String image3Url) {
        this.image3Url = image3Url;
    }

    public String getImage4Url() {
        if (ValidateUtil.isNotNull(image4Url) && ValidateUtil.isNotNetUrl(image4Url)) {
//            image4Url = Common.imageUrl + image4Url;
            image4Url = SYS_CONFIG_PATH.IMAGE_BASE_URL + image4Url;
        }
        return image4Url;
    }

    public void setImage4Url(String image4Url) {
        this.image4Url = image4Url;
    }

    public int getStar() {
        return star;
    }

    public void setStar(int star) {
        this.star = star;
    }

    public int getIsUnknownName() {
        return isUnknownName;
    }

    public void setIsUnknownName(int isUnknownName) {
        this.isUnknownName = isUnknownName;
    }


    public long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(long createTime) {
        this.createTime = createTime;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSignPhoto() {
        return signPhoto;
    }

    public void setSignPhoto(String signPhoto) {
        this.signPhoto = signPhoto;
    }

    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    public Integer getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(Integer delFlag) {
        this.delFlag = delFlag;
    }

    public String getExtra1() {
        return extra1;
    }

    public void setExtra1(String extra1) {
        this.extra1 = extra1;
    }

    public String getExtra2() {
        return extra2;
    }

    public void setExtra2(String extra2) {
        this.extra2 = extra2;
    }

    public String getExtra3() {
        return extra3;
    }

    public void setExtra3(String extra3) {
        this.extra3 = extra3;
    }
}
